package com.zkthink.ceres.promotion.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zkthink.base.R;
import com.zkthink.base.request.PageParams;
import com.zkthink.base.service.SuperService;
import com.zkthink.ceres.promotion.dto.PromotionApplyInfoPageDTO;
import com.zkthink.ceres.promotion.dto.PromotionIdDTO;
import com.zkthink.ceres.promotion.entity.PromotionApplyInfo;
import com.zkthink.ceres.promotion.vo.admin.PromotionApplyInfoPageAdminVO;

/**
 * <p>
 * 业务接口 营销活动申请表
 * </p>
 *
 * @author kellen
 * @date 2020-06-16
 */
public interface PromotionApplyInfoService extends SuperService<PromotionApplyInfo> {

  /**
   * 报名活动
   *
   * @author 善泉 2020/6/20 22:11
   */
  R<Boolean> applyPromotion(PromotionApplyInfo info);

  /**
   * 商家审核活动
   */
  R<Boolean> auditPromotion(PromotionApplyInfo info);


  /**
   * 分页查询
   */
  R<IPage<PromotionApplyInfoPageAdminVO>> page(PageParams<PromotionApplyInfoPageDTO> params);

  /**
   * 清退某个活动申请
   * @param promotionIdDTO
   * @return
   */
  R<Boolean> closeApplyInfo(PromotionIdDTO promotionIdDTO);
}
